<!--
 * @FilePath     : /study_code/jquery/ajax-options-statusCode.html
 * @Description  : $.ajax({ status: {} })
 * @Date         : 2025-04-17 15:09:54
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-17 15:19:59
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <!-- <link rel="stylesheet" href="" /> -->
  </head>
  <body>
    <h2>options-context</h2>

    <script src="/jquery/dist/jquery.min.js"></script>
    <script src="/jquery/ajax/common.js"></script>
    <script>
      $.ajax({
        url: baseUrl.root + baseUrl.ajax + '/status',
        type: 'GET',
        statusCode: {
          400: function () {
            console.log('触发回调') // '触发回调'
          },
        },
      })
    </script>
  </body>
</html>
